home *** CD-ROM | disk | FTP | other *** search
- XCOMM $XConsortium: scoLib.tmpl, sco$
-
- /*
- * @(#) scoLib.tmpl 11.2 94/05/13
- * SCO shared library template
- *
- * SCO Modification History
- * S012, 22-Jun-95, hops
- * revert XMULIB
- * S012, 09-Sep-94, toma
- * redefine XMULIB. This is a dumb hack to get some EBL8 clients
- * built.
- * S011, 13-May-94, garyh
- * Up StaticSharedXlibRev to R5b (headerfile change from MS Tto USL)
- * S010, 15-Jan-93, hess
- * use mkshlib from /bin
- * S009, 11-Nov-92, mikep
- * remove SharedLibrary defines from here. It's too late by the
- * time this is included.
- * M008, 21-Sep-92, hess
- * move mkshlib to top/cc, for now, until our build env catches up with
- * the tree.
- * M007, 04-Aug-92, hess
- * use sharedlibs
- * M006, 02-Jun-92, hess
- * add MKSHLIBSRC
- * M005, 18-May-92, hess
- * add sharedxtrev
- * M004, 18-Mar-92, hess
- * add mcs command
- * M003, 17-Mar-92, hess
- * set MKSHLIB var to point to our local version
- * M002, 10-Feb-92, hess
- * add sharedxlibrev
- * M001, 30-Jan-92, hess
- * add MKSHLIB var.
- * M000, 10-Jan-92, hess
- * created, Note: not all these libs will exist.
- */
- SHLIBLDFLAGS = SharedLibraryLoadFlags
- PICFLAGS = PositionIndependentCFlags
- MKSHLIB = mkshlib
- MCS = mcs -d
-
- #ifndef SharedXlibRev
- #define SharedXlibRev 5.0
- #endif
- #ifndef StaticSharedXlibRev
- #define StaticSharedXlibRev R5b
- #endif
- #ifndef SharedXtRev
- #define SharedXtRev 5.0
- #endif
- #ifndef SharedXmuRev
- #define SharedXmuRev 5.0
- #endif
- #ifndef SharedXawRev
- #define SharedXawRev 5.0
- #endif
- #ifndef SharedXextRev
- #define SharedXextRev 5.0
- #endif
- #ifndef SharedXTestRev
- #define SharedXTestRev 1.0
- #endif
- #ifndef SharedXTrapRev
- #define SharedXTrapRev 1.0
- #endif
- #ifndef SharedPexRev
- #define SharedPexRev 1.0
- #endif
- #ifndef SharedFSRev
- #define SharedFSRev 5.0
- #endif
-
- /*
- * and now a little bit of magic for using imake without source tree; if we
- * are using shared libraries, we really do not need to depend on anything
- */
- #if SharedLibXext
- DEPEXTENSIONLIB = /* _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.sa.$(SOXEXTREV)) */
- EXTENSIONLIB = _Use(-lXext,-L$(EXTENSIONSRC)/lib -lXext)
- #endif
- #if SharedLibX
- DEPXLIB = $(DEPEXTENSIONLIB) _Use(,$(XLIBSRC)/libX11_s.a)
- XLIB = $(EXTENSIONLIB) _Use(-lX11,-L$(XLIBSRC) -lX11)
- #endif
- #if SharedLibXmu
- /* SVR4 shared libraries are deficient in link semantics */
- DEPXMULIB = /* _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.sa.$(SOXMUREV)) */
- XMULIBONLY = _Use(-lXmu,-L$(XMUSRC) -lXmu)
- XMULIB = $(XMULIBONLY) -z nodefs
-
- #ifndef XawClientLibs
- #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
- #endif
- #endif
- #if SharedOldLibX
- DEPOLDXLIB = /* _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.sa.$(SOOLDXREV)) */
- OLDXLIB = _Use(-loldX_s,-L$(OLDXLIBSRC) -loldX_s)
- #endif
- #if SharedLibXt
- DEPXTOOLLIB = /* _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.sa.$(SOXTREV)) */
- XTOOLLIB = _Use(-lXt,-L$(TOOLKITSRC) -lXt)
- #endif
- #if SharedLibXaw
- DEPXAWLIB = /* _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.sa.$(SOXAWREV)) */
- XAWLIB = _Use(-lXaw,-L$(AWIDGETSRC) -lXaw)
- #endif
- #if SharedLibXinput
- DEPXILIB = /* _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.sa.$(SOXINPUTREV)) */
- XILIB = _Use(-lXi,-L$(XILIBSRC) -lXi)
- #endif
- XLIBARCHIVE = $(EXTENSIONLIB) _Use(-lX11,$(XLIBSRC)/libX11.a)
-
- #define Help
- #define Help
-
- /* libraries that deskworks, scoclients and xdt3 would like to share */
- #ifndef DragDropLib
- #define DragDropLib $(LIBSRC)/dragdrop/libdragdrop.a
- #endif
-
- #ifndef ScoHelpLib
- #define ScoHelpLib $(LIBSRC)/bkr_help/libbkr_help.a
- #endif
-
- #ifndef XoLibrary
- #define XoLibrary $(LIBSRC)/Xo/libXo.a
- #endif
-
- #ifndef XpmLibrary
- #define XpmLibrary $(LIBSRC)/Xpm3/libXpm.a
- #endif
-
- STARTUPDIR = $(LIBDIR)/sco/startup
- DNDLIB = DragDropLib
- XBLIB = $(LIBSRC)/Xb/libXb.a
- XOLIB = XoLibrary
- XQPLIB = $(LIBSRC)/Xqp/libXqp.a
- OSALLIB = $(LIBSRC)/osal/libosal.a
- HELPLIB = ScoHelpLib
-
- #ifndef IXIClientLibs
- #define IXIClientLibs $(XBLIB) $(DNDLIB) $(XQPLIB) $(OSALLIB)
- #endif
-
- #ifndef SCOClientLibs
- #define SCOClientLibs $(DNDLIB) $(HELPLIB) $(XOLIB) XmClientLibs
- #endif
-